<?php
namespace app\home\validate;

use think\Validate;

class Base extends Validate
{
    public function isMoney($num){
        if (preg_match('/^[0-9]+(.[0-9]{1,2})?$/', $num) && $num > 0) {  
            return true;  
        }else{   
            return false;
        } 
    }
}